/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Rada.Html;

import Rada.RObject;

/**
 *
 * @author Miguel
 */
public class Td extends RObject{
    RObject value;
    public int colSpan;
    public int rowSpan;
    public Td(RObject v){
        super();
        colSpan = 0;
        rowSpan = 0;
        value = v;
    }
    @Override
    public String show (){
        html="<td ";
        if (colSpan!=0) html+="colspan="+colSpan;
        if (rowSpan!=0) html+="rowspan="+colSpan;
        html+=getProperties();
        html+=">";
        html+=value.show();
        html+="</td>";
        return html;
    }
}